<?php
    $name = $_POST['name'] ;
    $age = $_POST['age'] ;
    $arr = [] ;
    if( !$name || !$age ){
        $arr['status'] = 0 ; 
        $arr['info'] = '请求失败' ; 
    } else {
        $arr['status'] = 1 ; 
        $arr['info'] = '请求成功' ;
        $arr['data'] = $_POST ; 
    }
    echo json_encode($arr);
?>